package cn.tedu.springmvc.mapper;

import cn.tedu.springmvc.pojo.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    List<User> getUserAll();
    //根据id查询用户
    User getUser(int id);

    //新增用户
    void insertUser(User user);

    //修改用户信息
    void updateUser(User user);

    //根据id删除用户
    void deleteUser(int id);
}
